package com.funny.learning.english.api;
 
import com.funny.learning.english.util.TimeStampUtil;

public class Define {
	
	public static final String INTENT_SLUG_TOPIC = "slug_topic";
	public static final String INTENT_SLUG_SUB_TOPIC = "slug_sub_topic";
	public static final String INTENT_SLUG_GAME = "slug_game";
	public static final String INTENT_THUMB_GAME = "thumb_game";
	public static final String INTENT_SLUG_TOPIC_NAME = "slug_topic_name";
	public static final String INTENT_SLUG_SUB_TOPIC_NAME = "slug_sub_topic_name";
	public static final String INTENT_SLUG_GAME_NAME = "slug_game_name";

	public static final String KEY_USER = "users";
	public static final String KEY_EMAIL = "email";
	
	public static final String link_google = "https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=%22apple%22&rsz=5";
	
	private static char[] appIds = { 'a', 'p', 'p', 'i', 'd', '1', '2', '3' };

	private static String ROOT = "http://vietalo.com";

	public static String PREFIX = "&_cl_rest=1&_cl_submit=1&_cl_ajax=1&_app_id="
			+ new String(appIds) + "&_cl_app_id="+ new String(appIds) 
			+ "&_cl_platform=1&_cl_ts="
			+ TimeStampUtil.getCurrentTimeStamp() + "&_cl_deviceID=";
	public static String PREFIX1 = "&_cl_rest=1&_cl_submit=1&_cl_ajax=1&_app_id="
			+ new String(appIds)
			+ "&_cl_platform=1&_cl_ts="
			+ TimeStampUtil.getCurrentTimeStamp() + "&_cl_deviceID=";
	
	public static String ROOT_IMAGE = "http://static.vietalo.com/370/";

	
	public static String TYPE_TRAIL = "trial";
	public static String TYPE_PAYMENT = "payment";
	
	public static String API_COURSE= ROOT + "/course/list";
	public static String API_REGISTER_COURSE= ROOT + "/course/register";
	public static String API_REGISTER_LANGUAGE = ROOT + "/language/registry";
	public static String API_LANGUAGE = ROOT + "/language/list";
	public static String API_REGISTER = ROOT + "/user/register";
	public static String API_LOGIN = ROOT + "/user/login";
	public static String API_FORGOT_PASS = ROOT + "/user/forgot-password";
	public static String API_LOGOUT = ROOT + "/user/logout?";
	public static String API_RESET_PASS = ROOT + "/user/update";
	public static String API_GET_PASS_FORGOT = ROOT + "/user/recover-password";
	public static String API_LOGIN_WITH_FACEBOOK = ROOT + "/user/oauth-mobile-token-success?login=facebook&access_token=";
	
	public static String API_HOME = ROOT + "/site/api-data-course-for-user?";
	public static String API_PLAY_GAME = ROOT + "/play";

}
